# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org>
# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
pkgname=haskell-array
pkgrel=1
pkgver=0.3.0.0
pkgdesc="Mutable and immutable arrays"
url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/array"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=6.12.1 sh)
options=('strip')
source=(http://hackage.haskell.org/packages/archive/array/$pkgver/array-$pkgver.tar.gz)
install=haskell-array.install

build() {
    cd $srcdir/array-$pkgver
    runhaskell Setup configure --prefix=/usr || return 1
    runhaskell Setup build                   || return 1
    runhaskell Setup register   --gen-script || return 1
    runhaskell Setup unregister --gen-script || return 1
    install -D -m744 register.sh   $pkgdir/usr/share/haskell/$pkgname/register.sh
    install    -m744 unregister.sh $pkgdir/usr/share/haskell/$pkgname/unregister.sh
    runhaskell Setup copy --destdir=$pkgdir || return 1
    install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE || return 1
}
md5sums=('d3508beefeae2ed9e626f417c25be437')
